<template>
    <div class="box">
        <h1>子组件</h1>
        <span></span>
    </div>
</template>

<script setup>
import {defineProps,defineEmits} from 'vue'
const props = defineProps(['num']);
const emits = defineEmits(['update:num'])
</script>